package com.tcpudp.model;

import lombok.Getter;
import lombok.Setter;

import java.util.UUID;

@Getter
@Setter
public class ServerConfig {
    private String id;
    private String name;
    private String type; // TCP or UDP
    private int port;
    private boolean running;
    private String responseMode; // AUTO, MANUAL, ECHO
    private String responseContent; // 用于AUTO模式的自动响应内容

    public ServerConfig() {
        this.id = UUID.randomUUID().toString();
    }
}